<?php
class MY_Authentication_controller extends CI_Controller {
function __construct()
    {
    	parent::__construct();
    	$this->load->library('session');
        if ($this->session->userdata('logged_in')==false)
        {
            header('Location: /user/login');
        }
    	
    	
    }
    function check(){
    	if($this->session->userdata('logged_in')==TRUE){
    		
    	}else{
    		redirect('/index.php/user/login', 'refresh');
    	}
    }
}
